package com.shopx.task;

import com.shopx.cm.dao.db2.SysMaterialUserDao;
import com.shopx.cm.service.ICmMaterialService;
import com.shopx.task.job.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Component("jobDispatch")
@Slf4j
public class JobDispatch {

    @Resource
    private SyncMaterialStaffJob syncMaterialStaffJob;

    @Resource
    private SyncMaterialSendJob syncMaterialSendJob;

    @Resource
    private SyncMaterialSaleJob syncMaterialSaleJob;

    @Resource
    private SyncHrLevelJob syncHrLevelJob;

//    /***
//     * @desc 延期告警
//     * @author lituo
//     * @date 2023/3/20 10:18 下午 @param
//     * @return void
//     */
//    @Scheduled(cron = "${quataz.syncMaterialStaff}")
//    public void syncMaterialStaff() {
//        syncMaterialStaffJob.doExecute();
//    }
//
//    /***
//     * @desc 延期告警
//     * @author lituo
//     * @date 2023/3/20 10:18 下午 @param
//     * @return void
//     */
//    @Scheduled(cron = "${quataz.syncMaterial}")
//    public void syncMaterialSend() {
//        syncMaterialSendJob.doExecute();
//    }
//
//    /***
//     * @desc 销售报表同步
//     * @author lituo
//     * @date 2023/3/20 10:18 下午 @param
//     * @return void
//     */
//    @Scheduled(cron = "${quataz.syncMaterialSale}")
//    public void syncSaleDt() {
//        syncMaterialSaleJob.doExecute();
//    }

    @Scheduled(cron = "${quataz.syncHrLevel}")
    public void syncHrLevel() {
        syncHrLevelJob.doExecute();
    }


}
